<title>消息中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<script type="text/javascript" src="#(assets)/js/jquery-2.2.4.min.js"></script>
#@checkToken()
<style> 
	body{font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif,"宋体";}
	*{margin:0;padding:0;}
	li{list-style-type:none;}
	select,input{-webkit-appearance:none;border:0px;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);   
	}
</style>
<body bgcolor="#fff" style="margin:0px;">

	<div align="center" style="width:100%;">
		<div style="margin-top:10px;width:100%;">
			<div onclick="window.location.href='/app/page/personal-event_sel'" style="width:90%;height:70px;">
				<div style="float:left;width:17%"><img style="width:40px;margin-top:15px;" src="#(assets)/images/mobile/message_2.png"></div>
				<div align="left" style="float:left;width:63%;margin-top:10px;">
					<div style="font-size:16px;color:#383838:">
						<a >活动精选</a>
					</div>
					<div style="margin-top:width:70%;;font-size:14px;color:#626262;display:block;white-space:nowrap; overflow:hidden;text-overflow:ellipsis;">
						最新、最火的活动专区
					</div>
				</div>
				<div id="activity" hidden style="width:20px;height:20px;border-radius:10px;background:#FF2D2D;float:right;margin-top:20px;color:#FFF;line-height:20px;font-size:13px">
					
				</div>
			</div>
			<div onclick="window.location.href='/app/page/personal-notice'" style="clear:both;width:90%;height:70px;border-top:1px solid #f4f5f9">
				<div style="float:left;width:17%"><img style="width:40px;margin-top:15px;" src="#(assets)/images/mobile/message_4.png"></div>
				<div align="left" style="float:left;width:63%;margin-top:10px;">
					<div style="font-size:16px;color:#383838:">
						<a >通知消息</a>
					</div>
					<div style="margin-top:width:70%;;font-size:14px;color:#626262;display:block;white-space:nowrap; overflow:hidden;text-overflow:ellipsis;">
						第一时间掌握平台最新动态
					</div>
				</div>
				<div id="notice" hidden style="width:20px;height:20px;border-radius:10px;background:#FF2D2D;float:right;margin-top:20px;color:#FFF;line-height:20px;font-size:13px">
					
				</div>
			</div>
			<div onclick="window.location.href='/app/page/personal-journalism'" style="clear:both;width:90%;height:70px;border-top:1px solid #f4f5f9">
				<div style="float:left;width:17%"><img style="width:40px;margin-top:15px;" src="#(assets)/images/mobile/message_5.png"></div>
				<div align="left" style="float:left;width:63%;margin-top:10px;">
					<div style="font-size:16px;color:#383838:">
						<a >新闻公告</a>
					</div>
					<div style="margin-top:width:70%;;font-size:14px;color:#626262;display:block;white-space:nowrap; overflow:hidden;text-overflow:ellipsis;">
						一手掌握平台新闻、公告
					</div>
				</div>
				<div id="news" hidden style="width:20px;height:20px;border-radius:10px;background:#FF2D2D;float:right;margin-top:20px;color:#FFF;line-height:20px;font-size:13px">
					
				</div>
			</div>
			<div onclick="window.location.href='/app/page/personal-assets'" style="clear:both;width:90%;height:70px;border-top:1px solid #f4f5f9">
				<div style="float:left;width:17%"><img style="width:40px;margin-top:15px;" src="#(assets)/images/mobile/message_6.png"></div>
				<div align="left" style="float:left;width:63%;margin-top:10px;">
					<div style="font-size:16px;color:#383838:">
						<a >资产动态</a>
					</div>
					<div style="margin-top:width:70%;;font-size:14px;color:#626262;display:block;white-space:nowrap; overflow:hidden;text-overflow:ellipsis;">
						轻松查看账户详情、投资记录
					</div>
				</div>
				<div id="assets" hidden style="width:20px;height:20px;border-radius:10px;background:#FF2D2D;float:right;margin-top:20px;color:#FFF;line-height:20px;font-size:13px">
					
				</div>
			</div>
			
		</div>
	</div>
<script>
	var url ="#(path)/notice/unReadMark?token=#(session.token??)";
	$.getJSON(url, function(datainfo) {
		console.log(datainfo);
		var data = datainfo.data;
		if(data.activity > 0){ 
			$("#activity").show();
			$("#activity").html(data.activity);
		}
		if(data.notice > 0){ 
			$("#notice").show();
			$("#notice").html(data.notice);
		}
		if(data.news > 0){ 
			$("#news").show();
			$("#news").html(data.news);
		}
		if(data.assets > 0){ 
			$("#assets").show();
			$("#assets").html(data.assets);
		}
	});
</script>



</body>